import request from "./request"
/**
 * @method  获取商品分类
 * @derscription
 */
export const addGoodsCate = (model) => request.get(`categories`, { params: model })
    /**
     * 添加
     */
export const addscate = (model) => request.post('categories', model)

/**
 * 编辑
 */
export const editcate = (model) => request.put(`categories/${model.cat_id}`, model)
    /**
     * 删除
     */
export const deletecate = (id) => request.delete(`categories/${id}`)